{include file="public/header2" /}
<form action="{:url('/admin/blog/reply_edit/bid/'.$reply['reply_id'])}" method="post">
    <input type="hidden" name="reply_id" value="{$reply.reply_id}">
<div class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label required">邮箱</label>
        <div class="layui-input-block">
            <input type="email" name="reply_email" lay-verify="required" value="{$reply.reply_email}" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">评论内容</label>
        <div class="layui-input-block" style="background: #fff;">
            <textarea id="demo" style="display: none;" name="reply_content">
                {$reply.reply_content}
            </textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">所属文章</label>
        <div class="layui-input-block">
            <select  lay-filter="aihao"  name="blog_id">
                <option value="">请选择</option>
                {foreach $blog as $v}
                <option value="{$v.blog_id}" {$reply['blog_id']==$v['blog_id']?'selected':''} >{$v.blog_title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">发布时间</label>
        <div class="layui-input-block">
            <input type="date" value="{$reply.reply_time}" class="layui-input" name="reply_time">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" id="addBtn"  type="submit">确认编辑</button>
        </div>
    </div>
</div>
</form>
<script src="/static/admin/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/static/admin/js/jquery-1.12.4.js" charset="utf-8"></script>
<script>
    layui.use(['util', 'laydate', 'layer'], function(){
        var util = layui.util
            ,laydate = layui.laydate
            ,$ = layui.$
            ,layer = layui.layer;
        //XSS 过滤
        $('#addBtn').on('click', function(){ //监听按钮事件
            var str = util.escape($('.layui-input').val()); //执行 xss 过滤方法
            $('.layui-input').val(str);
        });
    });
    layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.build('demo'); //建立编辑器
    });
</script>
<!--<script>-->
<!--    layui.use(['form'], function () {-->
<!--        var form = layui.form,-->
<!--            layer = layui.layer,-->
<!--            $ = layui.$;-->

<!--        //监听提交-->
<!--        form.on('submit(saveBtn)', function (data) {-->
<!--            var index = layer.alert(JSON.stringify(data.field), {-->
<!--                title: '最终的提交信息'-->
<!--            }, function () {-->

<!--                // 关闭弹出层-->
<!--                layer.close(index);-->

<!--                var iframeIndex = parent.layer.getFrameIndex(window.name);-->
<!--                parent.layer.close(iframeIndex);-->

<!--            });-->

<!--            return false;-->
<!--        });-->

<!--    });-->
<!--</script>-->
</body>
</html>